<div id="viewer"></div>
<div id="owner"></div>

<script type="text/javascript">
function <? echo $data_response->getJSFunction()->getName() ?>(<? echo $data_response->getJSFunction()->getArgs() ?>) 
{
  var html = '';
  <?php echo $data_response->getData($owner_request); ?>
  var owner_name = <?php echo $owner->getName(); ?>
  var owner_thumb = <?php echo $owner->getField(OSPersonField::THUMBNAIL_URL); ?>
  var owner_profile = <?php echo $owner->getField(OSPersonField::PROFILE_URL); ?>
  var owner_nick = <?php echo $owner->getField(OSPersonField::NICKNAME); ?>
  html = '<a href="' + owner_profile + '" target="_top" style="float:left">' +'<img src="' + owner_thumb + '"/></a>' +
    owner_name + ' - '+owner_nick+'</a>'; 
  document.getElementById("owner").innerHTML = html;

  <?php echo $data_response->getData($viewer_request); ?>
  var viewer_name = <?php echo $viewer->getName(); ?>
  var viewer_thumb = <?php echo $viewer->getField(OSPersonField::THUMBNAIL_URL); ?>
  var viewer_profile = <?php echo $viewer->getField(OSPersonField::PROFILE_URL); ?>
  var viewer_nick = <?php echo $viewer->getField(OSPersonField::NICKNAME); ?>
  html = '<a href="' + viewer_profile + '" target="_top" style="float:left">' +'<img src="' + viewer_thumb + '"/></a>' +
    viewer_name + ' - '+viewer_nick+'</a>'; 
  document.getElementById("viewer").innerHTML = html
  <?php echo GadgetsWindow::adjustHeight(); ?>
  
}
</script>